<div class="universities view">
<h2><?php  __('University');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['type']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Latitude'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['latitude']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Longitude'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['longitude']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Parent University'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($university['ParentUniversity']['name'], array('controller' => 'universities', 'action' => 'view', $university['ParentUniversity']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Lft'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['lft']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rght'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $university['University']['rght']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit University', true), array('action' => 'edit', $university['University']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete University', true), array('action' => 'delete', $university['University']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $university['University']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Universities', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New University', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Universities', true), array('controller' => 'universities', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Parent University', true), array('controller' => 'universities', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Areas', true), array('controller' => 'areas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Area', true), array('controller' => 'areas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Web Domains', true), array('controller' => 'web_domains', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Web Domain', true), array('controller' => 'web_domains', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Universities');?></h3>
	<?php if (!empty($university['ChildUniversity'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Type'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Address'); ?></th>
		<th><?php __('Latitude'); ?></th>
		<th><?php __('Longitude'); ?></th>
		<th><?php __('Parent Id'); ?></th>
		<th><?php __('Lft'); ?></th>
		<th><?php __('Rght'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($university['ChildUniversity'] as $childUniversity):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $childUniversity['id'];?></td>
			<td><?php echo $childUniversity['type'];?></td>
			<td><?php echo $childUniversity['name'];?></td>
			<td><?php echo $childUniversity['address'];?></td>
			<td><?php echo $childUniversity['latitude'];?></td>
			<td><?php echo $childUniversity['longitude'];?></td>
			<td><?php echo $childUniversity['parent_id'];?></td>
			<td><?php echo $childUniversity['lft'];?></td>
			<td><?php echo $childUniversity['rght'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'universities', 'action' => 'view', $childUniversity['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'universities', 'action' => 'edit', $childUniversity['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'universities', 'action' => 'delete', $childUniversity['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $childUniversity['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Child University', true), array('controller' => 'universities', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Areas');?></h3>
	<?php if (!empty($university['Area'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($university['Area'] as $area):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $area['id'];?></td>
			<td><?php echo $area['name'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'areas', 'action' => 'view', $area['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'areas', 'action' => 'edit', $area['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'areas', 'action' => 'delete', $area['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $area['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Area', true), array('controller' => 'areas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Web Domains');?></h3>
	<?php if (!empty($university['WebDomain'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Domain'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($university['WebDomain'] as $webDomain):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $webDomain['id'];?></td>
			<td><?php echo $webDomain['domain'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'web_domains', 'action' => 'view', $webDomain['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'web_domains', 'action' => 'edit', $webDomain['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'web_domains', 'action' => 'delete', $webDomain['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $webDomain['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Web Domain', true), array('controller' => 'web_domains', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
